package com.example.word_book.bean;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class ErrorWord {
    private int id;
    private String word;
    private String date;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public ErrorWord(String word) {
        this.word = word;
        Date d = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        date = format.format(d);
    }
}
